package diwuzhou;

public class Course {

        private  String courseID;    //课程代号
        private String courseName;     //课程名称
        private int credit;        //课程学分
        private String teacher;     //任课老师

//    public void setCourseID(String courseID) {
//        this.courseID = courseID;
//    }
//
//    public void setCourseName(String courseName) {
//        this.courseName = courseName;
//    }
//
//    public void setCredit(int credit) {
//        this.credit = credit;
//    }
//
//    public void setTeacher(String teacher) {
//        this.teacher = teacher;
//    }
//
//    public String getCourseID() {
//        return courseID;
//    }
//
//    public int getCredit() {
//        return credit;
//    }
//
//    public String getCourseName() {
//        return courseName;
//    }
//
//    public String getTeacher() {
//        return teacher;
//    }

    public  Course()    //默认构造器
        {

        }
        public Course(String courseID)//单参数的构造器
        {
            this.courseID=courseID;
        }
        public  Course(String courseID, String courseName)//两个参数的构造器
        {
            this(courseID);
            this.courseName=courseName;
        }
        public Course(String courseID, String courseName, int credit) //三个参数的构造器
        {
            this(courseID,courseName);
            this.credit=credit;
        }
        public Course(String courseID, String courseName, int credit, String teacher)  //四个参数的构造器
        {
            this(courseID,courseID,credit);
            this.teacher=teacher;
        }


}
